package com.aaron.sqlsession;

import com.aaron.config.Configuration;
import com.aaron.config.MappedStatement;

import java.sql.SQLException;
import java.util.List;

/**
 * @Description
 * @Author Aaron
 * @Version V1.0.0
 * @Since 1.0
 * @Date 2021/10/30
 */
public interface Executor {

    <E> List<E> query(Configuration configuration, MappedStatement
            mappedStatement, Object[] param) throws Exception;

    void close() throws SQLException;
}
